<?php

namespace App\Http\Controllers\Api\V1\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use App\Models\ScenicDivination;
use App\Models\YaoDivination;
use Storage;

class UserDivinationRecordZzxjItemResource extends JsonResource
{
    public function toArray($request)
    {
    	$resource = $this->resource;
    	
        return [
        	'id' => (int)$resource->id,
	        'up_name'=>$resource->up_name,
            'down_name'=>$resource->down_name,
            'title'=>$resource->title,
            'bian_title'=>$resource->bian_title,
            'dividend_id'=>$resource->dividend_id,
            'by_dividend_id'=>$resource->by_dividend_id,
            'bengsy'=>$resource->bengsy,
            'bianysy'=>$resource->bianysy,
            'biangsy'=>$resource->biangsy,
            'tag'=>$resource->tag,
            'content'=>$resource->content,
            'brief'=>$resource->brief,
            'cz'=>$resource->cz,
            'type'=>$resource->type,
            
	        'created_at' => (string)$resource->created_at,
        ];
    }
}
